package com.fh.service;

import com.fh.model.Role;
import com.fh.util.DataTablePageUtil;
import com.fh.vo.RoleVo;
import org.springframework.stereotype.Service;

@Service
public interface RoleService {

    //查询数据
    public DataTablePageUtil<Role> queryRole(DataTablePageUtil<Role> page, RoleVo roleVo);
    //新增数据
    void addRole(Role role);
    //回显
    Role toUpdateRole(Integer roleId);
    //修改
    void updateRole(Role role);
    //删除
    void deleteRole(Integer roleId);
    //批量删除
    void deleteBothRole(Integer[] arr);
}
